import requestService from "../service/request";

const Api = {
  userinfo: "/app/doupiaopiao/user/userinfo",
  update: "/app/doupiaopiao/user/updatedUserInfo",
};

//获取个人信息
export function userinfo() {
  return requestService(Api.userinfo, {
    type: "get",
  });
}
//更新用户信息
export function updatedUserInfo(data) {
  return requestService(Api.update, {
    type: "get",
    data,
  });
}
